package ned

class Device {

	String name
	Installation installation
	
	static belongsTo = [facility:Facility]
	
	static embedded = ['installation']
	
    static constraints = {
    	name(nullable: false, blank: false, maxSize: 32, unique: true)
    	facility(nullable: false)
    }
}
